//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01A
TN_Widget.CreateTable([['The Wood Brothers','Newton Theatre','Newton, NJ','Friday','5/3/2024','8:00 PM','6267132','The-Wood-Brothers-5-3-2024'],['Tommy Emmanuel','Newton Theatre','Newton, NJ','Saturday','5/11/2024','8:00 PM','6033120','Tommy-Emmanuel-5-11-2024'],['Big Apple Comedy Club','Newton Theatre','Newton, NJ','Friday','5/17/2024','8:00 PM','6376997','Big-Apple-Comedy-Club-5-17-2024'],['John Hiatt','Newton Theatre','Newton, NJ','Saturday','5/18/2024','8:00 PM','6216423','John-Hiatt-5-18-2024'],['Hollywood Nights - Bob Seger Tribute','Newton Theatre','Newton, NJ','Saturday','5/25/2024','8:00 PM','6376995','Hollywood-Nights---Bob-Seger-Tribute-5-25-2024'],['Andy Summers','Newton Theatre','Newton, NJ','Saturday','6/1/2024','8:00 PM','6385793','Andy-Summers-6-1-2024'],['Dave Mason','Newton Theatre','Newton, NJ','Thursday','6/6/2024','8:00 PM','6385776','Dave-Mason-6-6-2024'],['The Allman Betts Band','Newton Theatre','Newton, NJ','Sunday','6/9/2024','8:00 PM','6219385','The-Allman-Betts-Band-6-9-2024'],['Eli Young Band','Newton Theatre','Newton, NJ','Wednesday','6/12/2024','8:00 PM','6350332','Eli-Young-Band-6-12-2024'],['Girls Night - The Musical','Newton Theatre','Newton, NJ','Thursday','6/13/2024','8:00 PM','6385779','Girls-Night---The-Musical-6-13-2024'],['The Ultimate Queen Celebration','Newton Theatre','Newton, NJ','Saturday','6/22/2024','8:00 PM','6385551','The-Ultimate-Queen-Celebration-6-22-2024'],['Dave Matthews Tribute Band','Newton Theatre','Newton, NJ','Friday','6/28/2024','8:00 PM','6385548','Dave-Matthews-Tribute-Band-6-28-2024'],['North Mississippi Allstars','Newton Theatre','Newton, NJ','Friday','7/12/2024','8:00 PM','6092698','North-Mississippi-Allstars-7-12-2024'],['Orianthi','Newton Theatre','Newton, NJ','Thursday','7/25/2024','8:00 PM','6408361','Orianthi-7-25-2024'],['Tab Benoit','Newton Theatre','Newton, NJ','Thursday','8/1/2024','8:00 PM','6379925','Tab-Benoit-8-1-2024'],['Sons Of Cream','Newton Theatre','Newton, NJ','Friday','8/16/2024','8:00 PM','6385550','Sons-Of-Cream-8-16-2024'],['John Oates','Newton Theatre','Newton, NJ','Thursday','8/22/2024','8:00 PM','6307620','John-Oates-8-22-2024'],['Vic Dibitetto','Newton Theatre','Newton, NJ','Friday','9/6/2024','8:00 PM','6408340','Vic-Dibitetto-9-6-2024'],['Wayne Newton','Arcada Theatre','Saint Charles, IL','Thursday','10/10/2024','7:30 PM','6392056','Wayne-Newton-10-10-2024'],['Bruce Cockburn','Newton Theatre','Newton, NJ','Friday','11/7/2070','8:00 PM','4385579','Bruce-Cockburn-11-7-2070']],'Newton Theatre','http://www.ticketnetwork.com/ticket/Newton-Theatre-events.aspx');